<div class="col-sm-12 mt20">

        


    <div class="panel panel-default">
            <div class="panel-body">
                    <div class="row col-lg-12">
                      <label class="form-control-static col-lg-2" style="width: 13%; text-align: right">购买时间范围：</label>
                      <div class="col-lg-2-4">
                        <div class="input-group" ng-click="dateOpen($event, date)">
                          <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" 
                           is-open="date.opened" placeholder="开始时间" ng-required="true" 
                           close-text="关闭" current-text="今天" clear-text="清除" readonly/>
                          <span class="input-group-btn">
                            <button type="button" class="btn btn-default">
                              <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                          </span>
                        </div>
                      </div>
                      <div class="col-lg-2-4">
                        <div class="input-group" ng-click="dateOpen($event, date1)">
                          <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" 
                           is-open="date1.opened" placeholder="截止时间" ng-required="true" 
                           close-text="关闭" current-text="今天" clear-text="清除"  readonly/>
                          <span class="input-group-btn">
                            <button type="button" class="btn btn-default">
                              <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                          </span>
                        </div>
                      </div>
                      <a class="btn btn-xs btn-link quick-btn" ng-click="today()">今天</a>
                      <a class="btn btn-xs btn-link quick-btn" ng-click="yesterday()">昨天</a>
                      <a class="btn btn-xs btn-link quick-btn" ng-click="thisWeek()">本周</a>
                      <a class="btn btn-xs btn-link quick-btn" ng-click="lastWeek()">上周</a>
                      <a class="btn btn-xs btn-link quick-btn" ng-click="thisMonth()">本月</a>
                      <a class="btn btn-xs btn-link quick-btn" ng-click="lastMonth()">上月</a>
                    </div>
                    
                    <div class="row col-lg-12 mt10">
                      <label class="form-control-static col-lg-2" style="width: 13%; text-align: right">查询条件：</label>
                      <div class="col-lg-2-4">
                            <input type="text" class="form-control" placeholder="电话号" ng-model="pageInfo.mobile">
                      </div>
                      <div class="col-lg-3">
                            <input type="text" class="form-control" placeholder="订单编号" ng-model="pageInfo.order_code">
                      </div>
                      <div class="col-lg-3 text-left">
                        <a class="btn btn-xs btn-link under-line" style="color: #428bca; vertical-align:-webkit-baseline-middle" 
                         ng-click="moreSearch()">更多搜索 
                        <i class="fa fa-caret-down" ng-show="!searchform.moreSearch"></i>
                        <i class="fa fa-caret-up" ng-show="searchform.moreSearch"></i>
                      </a>
                      </div>
                      <div class="col-lg-2">
                        <button class="btn btn-block btn-info" ng-click="loadlist()">立即搜索</button> 
                      </div>
                    </div>
                    <div ng-show="searchform.moreSearch">
                      <div class="row col-lg-12 mt10">
                        <label class="form-control-static col-lg-2" style="width: 13%; text-align: right"></label>
                        <div class="col-lg-2-4">
                                <input type="text" class="form-control" placeholder="姓名" ng-model="pageInfo.name">
                        </div>
                        <div class="col-lg-3">
                                <input type="text" class="form-control" placeholder="身份证号" ng-model="pageInfo.cardno">
                        </div>
                        <div class="col-lg-3">
                                <input type="text" class="form-control" placeholder="分销商昵称" ng-model="pageInfo.nickname">
                        </div>
                      </div>
              
                    </div>
                  </div>
        <!-- <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-12">
                <div class="col-sm-2">
                    <input type="text" class="form-control" placeholder="订单编号" ng-model="pageInfo.order_code">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" placeholder="分销商昵称" ng-model="pageInfo.nickname">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" placeholder="姓名" ng-model="pageInfo.name">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" placeholder="身份证号" ng-model="pageInfo.cardno">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" placeholder="电话号" ng-model="pageInfo.mobile">
                </div>
                <div class="col-sm-2">
                    <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
                </div>
            </div>
            <div class="col-sm-12 mt10">
                <div class="col-sm-2">
                    <!-- 开始时间 -->
                    <!-- <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="startDate.value" is-open="startDate.opened"
                        ng-click="dateOpen($event, startDate)" placeholder="开始时间" ng-required="true" close-text="关闭" current-text="今天"
                        clear-text="清除" readonly/>
                </div>
                <div class="col-sm-2">
                    <!-- 结束时间 -->
                    <!-- <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="endDate.value" is-open="endDate.opened" ng-click="dateOpen($event, endDate)"
                        placeholder="结束时间" ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>
                </div>
                <div class="col-sm-2">
                </div>
                <div class="col-sm-2">
                </div>
                <div class="col-sm-2">
                </div>
                <div class="col-sm-2">
                </div>
            </div>
        </div>-->

        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="col-md-1 text-center">订单编号</th>
                        <th class="col-md-1 text-center">游客信息</th>
                        <th class="col-md-1 text-center">数量</th>
                        <th class="col-md-1 text-center">购买时间</th>
                        <th class="col-md-1 text-center">产品名称/编号</th>
                        <th class="col-md-1 text-center">支付状态/出票状态</th>
                        <th class="col-md-1 text-center">分销商</th>
                        <th class="col-md-1 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="bean in beanList">
                        <td class="">
                            {{bean.order_code}}
                            <br>
                        </td>
                        <td class="text-center">
                            {{bean.name}}
                            <br>{{bean.mobile}}
                            <br>{{bean.cardno}}</td>
                        <td class="text-center">
                            <span>购买{{bean.num}}</span>
                            <br>
                            <span>退票{{bean.back}}</span>
                            <br>
                            <span>使用{{bean.used}}</span>
                        </td>
                        <td class="text-center">{{bean.create_time}}</td>
                        <td class="text-center">
                            {{bean.product_name}}
                            <br />{{bean.product_code}}
                        </td>
                        <td class="text-center">
                            <p ng-show="bean.pay_state==0" class="form-control-static">未支付</p>
                            <p ng-show="bean.pay_state==1" class="form-control-static">支付完成</p>
                            <br />
                            <span ng-show="bean.ticket_state=='0'" class="form-control-static">未出票</span>
                            <span ng-show="bean.ticket_state=='1'" class="form-control-static">等待出票</span>
                            <span ng-show="bean.ticket_state=='2'" class="form-control-static">全部出票完成</span>
                            <span ng-show="bean.ticket_state=='8'" class="form-control-static">无需出票</span>
                            <span ng-show="bean.ticket_state=='9'" class="form-control-static">出票失败</span>
                        </td>
                        <td class="text-center">
                            {{bean.nickname}}
                        </td>
                        <td class="text-center">
                            <button type="button" class="btn btn-info btn-xs" ng-click="info(bean)">详情</button>
                            <button type="button" class="btn btn-warning btn-xs" ng-click="profit(bean)">分润</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="pageInfo.totalItems" ng-model="pageInfo.pageNo" ng-change="loadlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false" items-per-page="pageInfo.pageSize"
                class="m-t-none m-b"></pagination>
        </div>

    </div>
</div>